package com.kolaxy.social.govern.reviewer.mapper;

import com.kolaxy.social.govern.reviewer.domain.ReviewerTaskStatus;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>todo</p>
 *
 * @author zhourunjin
 * @date 2020/9/4 12:56
 */
@Mapper
public interface ReviewerTaskStatusMapper {

    @Insert("insert into reviewer_task_status(reviewer_id, report_task_id, status) " +
            "values(#{reviewerId}, #{reportTaskId}, #{status})")
    void insert(ReviewerTaskStatus reviewerTaskStatus);

    @Update("update reviewer_task_status set status = #{status} where reviewer_id = #{reivewerId} and report_task_id = #{reportTaskId}")
    void update(ReviewerTaskStatus reviewerTaskStatus);
}
